home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2005 October / PCWOCT05.iso / Software / FromTheMag / XAMPP 1.4.14 / xampp-win32-1.4.14-installer.exe / xampp / phpMyAdmin / config.default.php < prev    next >
PHP Script  |  2005-05-05  |  39KB  |  846 lines

  1. <?php
  2. /* $Id: config.inc.php,v 2.52 2005/03/16 17:22:08 lem9 Exp $ */
  3. // vim: expandtab sw=4 ts=4 sts=4:
  4.  
  5. /**
  6.  * phpMyAdmin Configuration File
  7.  *
  8.  * All directives are explained in Documentation.html
  9.  */
  10.  
  11.  
  12. /**
  13.  * Sets the php error reporting - Please do not change this line!
  14.  */
  15. if (!isset($old_error_reporting)) {
  16.     error_reporting(E_ALL);
  17.     @ini_set('display_errors', '1');
  18. }
  19.  
  20.  
  21. /**
  22.  * Your phpMyAdmin url
  23.  *
  24.  * Complete the variable below with the full url ie
  25.  *    http://www.your_web.net/path_to_your_phpMyAdmin_directory/
  26.  *
  27.  * It must contain characters that are valid for a URL, and the path is
  28.  * case sensitive on some Web servers, for example Unix-based servers.
  29.  *
  30.  * In most cases you can leave this variable empty, as the correct value
  31.  * will be detected automatically. However, we recommend that you do
  32.  * test to see that the auto-detection code works in your system. A good
  33.  * test is to browse a table, then edit a row and save it.  There will be
  34.  * an error message if phpMyAdmin cannot auto-detect the correct value.
  35.  *
  36.  * If the auto-detection code does work properly, you can set to TRUE the
  37.  * $cfg['PmaAbsoluteUri_DisableWarning'] variable below.
  38.  */
  39. $cfg['PmaAbsoluteUri'] = '';
  40.  
  41.  
  42. /**
  43.  * Disable the default warning about $cfg['PmaAbsoluteUri'] not being set
  44.  * You should use this if and ONLY if the PmaAbsoluteUri auto-detection
  45.  * works perfectly.
  46.  */
  47. $cfg['PmaAbsoluteUri_DisableWarning'] = FALSE;
  48.  
  49. /**
  50.  * Disable the default warning that is displayed on the DB Details Structure page if
  51.  * any of the required Tables for the relationfeatures could not be found
  52.  */
  53. $cfg['PmaNoRelation_DisableWarning']  = FALSE;
  54.  
  55. /**
  56.  * The 'cookie' auth_type uses blowfish algorithm to encrypt the password. If
  57.  * at least one server configuration uses 'cookie' auth_type, enter here a
  58.  * passphrase that will be used by blowfish. The maximum length seems to be 46
  59.  * characters.
  60.  */
  61. $cfg['blowfish_secret'] = '';
  62.  
  63. /**
  64.  * Server(s) configuration
  65.  */
  66. $i = 0;
  67. // The $cfg['Servers'] array starts with $cfg['Servers'][1].  Do not use $cfg['Servers'][0].
  68. // You can disable a server config entry by setting host to ''.
  69. $i++;
  70. $cfg['Servers'][$i]['host']          = 'localhost'; // MySQL hostname or IP address
  71. $cfg['Servers'][$i]['port']          = '';          // MySQL port - leave blank for default port
  72. $cfg['Servers'][$i]['socket']        = '';          // Path to the socket - leave blank for default socket
  73. $cfg['Servers'][$i]['connect_type']  = 'tcp';       // How to connect to MySQL server ('tcp' or 'socket')
  74. $cfg['Servers'][$i]['extension']     = 'mysql';     // The php MySQL extension to use ('mysql' or 'mysqli')
  75. $cfg['Servers'][$i]['compress']      = FALSE;       // Use compressed protocol for the MySQL connection
  76.                                                     // (requires PHP >= 4.3.0)
  77. $cfg['Servers'][$i]['controluser']   = '';          // MySQL control user settings
  78.                                                     // (this user must have read-only
  79. $cfg['Servers'][$i]['controlpass']   = '';          // access to the "mysql/user"
  80.                                                     // and "mysql/db" tables).
  81.                                                     // The controluser is also
  82.                                                     // used for all relational
  83.                                                     // features (pmadb)
  84. $cfg['Servers'][$i]['auth_type']     = 'config';    // Authentication method (config, http or cookie based)?
  85. $cfg['Servers'][$i]['user']          = 'root';      // MySQL user
  86. $cfg['Servers'][$i]['password']      = '';          // MySQL password (only needed
  87.                                                     // with 'config' auth_type)
  88. $cfg['Servers'][$i]['only_db']       = '';          // If set to a db-name, only
  89.                                                     // this db is displayed in left frame
  90.                                                     // It may also be an array of db-names, where sorting order is relevant.
  91. $cfg['Servers'][$i]['verbose']       = '';          // Verbose name for this host - leave blank to show the hostname
  92.  
  93. $cfg['Servers'][$i]['pmadb']         = '';          // Database used for Relation, Bookmark and PDF Features
  94.                                                     // (see scripts/create_tables.sql)
  95.                                                     //   - leave blank for no support
  96.                                                     //     DEFAULT: 'phpmyadmin'
  97. $cfg['Servers'][$i]['bookmarktable'] = '';          // Bookmark table
  98.                                                     //   - leave blank for no bookmark support
  99.                                                     //     DEFAULT: 'pma_bookmark'
  100. $cfg['Servers'][$i]['relation']      = '';          // table to describe the relation between links (see doc)
  101.                                                     //   - leave blank for no relation-links support
  102.                                                     //     DEFAULT: 'pma_relation'
  103. $cfg['Servers'][$i]['table_info']    = '';          // table to describe the display fields
  104.                                                     //   - leave blank for no display fields support
  105.                                                     //     DEFAULT: 'pma_table_info'
  106. $cfg['Servers'][$i]['table_coords']  = '';          // table to describe the tables position for the PDF schema
  107.                                                     //   - leave blank for no PDF schema support
  108.                                                     //     DEFAULT: 'pma_table_coords'
  109. $cfg['Servers'][$i]['pdf_pages']     = '';          // table to describe pages of relationpdf
  110.                                                     //   - leave blank if you don't want to use this
  111.                                                     //     DEFAULT: 'pma_pdf_pages'
  112. $cfg['Servers'][$i]['column_info']   = '';          // table to store column information
  113.                                                     //   - leave blank for no column comments/mime types
  114.                                                     //     DEFAULT: 'pma_column_info'
  115. $cfg['Servers'][$i]['history']       = '';          // table to store SQL history
  116.                                                     //   - leave blank for no SQL query history
  117.                                                     //     DEFAULT: 'pma_history'
  118. $cfg['Servers'][$i]['verbose_check'] = TRUE;        // set to FALSE if you know that your pma_* tables
  119.                                                     // are up to date. This prevents compatibility
  120.                                                     // checks and thereby increases performance.
  121. $cfg['Servers'][$i]['AllowRoot']     = TRUE;        // whether to allow root login
  122. $cfg['Servers'][$i]['AllowDeny']['order']           // Host authentication order, leave blank to not use
  123.                                      = '';
  124. $cfg['Servers'][$i]['AllowDeny']['rules']           // Host authentication rules, leave blank for defaults
  125.                                      = array();
  126.  
  127.  
  128. $i++;
  129. $cfg['Servers'][$i]['host']            = '';
  130. $cfg['Servers'][$i]['port']            = '';
  131. $cfg['Servers'][$i]['socket']          = '';
  132. $cfg['Servers'][$i]['connect_type']    = 'tcp';
  133. $cfg['Servers'][$i]['extension']       = 'mysql';
  134. $cfg['Servers'][$i]['compress']        = FALSE;
  135. $cfg['Servers'][$i]['controluser']     = '';
  136. $cfg['Servers'][$i]['controlpass']     = '';
  137. $cfg['Servers'][$i]['auth_type']       = 'config';
  138. $cfg['Servers'][$i]['user']            = 'root';
  139. $cfg['Servers'][$i]['password']        = '';
  140. $cfg['Servers'][$i]['only_db']         = '';
  141. $cfg['Servers'][$i]['verbose']         = '';
  142. $cfg['Servers'][$i]['pmadb']           = ''; // 'phpmyadmin' - see scripts/create_tables.sql
  143. $cfg['Servers'][$i]['bookmarktable']   = ''; // 'pma_bookmark'
  144. $cfg['Servers'][$i]['relation']        = ''; // 'pma_relation'
  145. $cfg['Servers'][$i]['table_info']      = ''; // 'pma_table_info'
  146. $cfg['Servers'][$i]['table_coords']    = ''; // 'pma_table_coords'
  147. $cfg['Servers'][$i]['pdf_pages']       = ''; // 'pma_pdf_pages'
  148. $cfg['Servers'][$i]['column_info']     = ''; // 'pma_column_info'
  149. $cfg['Servers'][$i]['history']         = ''; // 'pma_history'
  150. $cfg['Servers'][$i]['verbose_check']   = TRUE;
  151. $cfg['Servers'][$i]['AllowRoot']       = TRUE;
  152. $cfg['Servers'][$i]['AllowDeny']['order']
  153.                                        = '';
  154. $cfg['Servers'][$i]['AllowDeny']['rules']
  155.                                        = array();
  156.  
  157. $i++;
  158. $cfg['Servers'][$i]['host']            = '';
  159. $cfg['Servers'][$i]['port']            = '';
  160. $cfg['Servers'][$i]['socket']          = '';
  161. $cfg['Servers'][$i]['connect_type']    = 'tcp';
  162. $cfg['Servers'][$i]['extension']       = 'mysql';
  163. $cfg['Servers'][$i]['compress']        = FALSE;
  164. $cfg['Servers'][$i]['controluser']     = '';
  165. $cfg['Servers'][$i]['controlpass']     = '';
  166. $cfg['Servers'][$i]['auth_type']       = 'config';
  167. $cfg['Servers'][$i]['user']            = 'root';
  168. $cfg['Servers'][$i]['password']        = '';
  169. $cfg['Servers'][$i]['only_db']         = '';
  170. $cfg['Servers'][$i]['verbose']         = '';
  171. $cfg['Servers'][$i]['pmadb']           = ''; // 'phpmyadmin' - see scripts/create_tables.sql
  172. $cfg['Servers'][$i]['bookmarktable']   = ''; // 'pma_bookmark'
  173. $cfg['Servers'][$i]['relation']        = ''; // 'pma_relation'
  174. $cfg['Servers'][$i]['table_info']      = ''; // 'pma_table_info'
  175. $cfg['Servers'][$i]['table_coords']    = ''; // 'pma_table_coords'
  176. $cfg['Servers'][$i]['pdf_pages']       = ''; // 'pma_pdf_pages'
  177. $cfg['Servers'][$i]['column_info']     = ''; // 'pma_column_info'
  178. $cfg['Servers'][$i]['history']         = ''; // 'pma_history'
  179. $cfg['Servers'][$i]['verbose_check']   = TRUE;
  180. $cfg['Servers'][$i]['AllowRoot']       = TRUE;
  181.  
  182. $cfg['Servers'][$i]['AllowDeny']['order']
  183.                                        = '';
  184. $cfg['Servers'][$i]['AllowDeny']['rules']
  185.                                        = array();
  186.  
  187. // If you have more than one server configured, you can set $cfg['ServerDefault']
  188. // to any one of them to autoconnect to that server when phpMyAdmin is started,
  189. // or set it to 0 to be given a list of servers without logging in
  190. // If you have only one server configured, $cfg['ServerDefault'] *MUST* be
  191. // set to that server.
  192. $cfg['ServerDefault'] = 1;              // Default server (0 = no default server)
  193. $cfg['Server']        = '';
  194. unset($cfg['Servers'][0]);
  195.  
  196.  
  197. /**
  198.  * Other core phpMyAdmin settings
  199.  */
  200. $cfg['OBGzip']                  = 'auto'; // use GZIP output buffering if possible (TRUE|FALSE|'auto')
  201. $cfg['PersistentConnections']   = FALSE;  // use persistent connections to MySQL database
  202. $cfg['ExecTimeLimit']           = 300;    // maximum execution time in seconds (0 for no limit)
  203. $cfg['SkipLockedTables']        = FALSE;  // mark used tables, make possible to show
  204.                                           // locked tables (since MySQL 3.23.30)
  205. $cfg['ShowSQL']                 = TRUE;   // show SQL queries as run
  206. $cfg['AllowUserDropDatabase']   = FALSE;  // show a 'Drop database' link to normal users
  207. $cfg['Confirm']                 = TRUE;   // confirm 'DROP TABLE' & 'DROP DATABASE'
  208. $cfg['LoginCookieRecall']       = TRUE;   // recall previous login in cookie auth. mode or not
  209. $cfg['LoginCookieValidity']     = 1800;   // validity of cookie login (in seconds)
  210. $cfg['UseDbSearch']             = TRUE;   // whether to enable the "database search" feature
  211.                                           // or not
  212. $cfg['IgnoreMultiSubmitErrors'] = FALSE;  // if set to true, PMA continues computing multiple-statement queries
  213.                                           // even if one of the queries failed
  214. $cfg['VerboseMultiSubmit']      = TRUE;   // if set to true, PMA will show the affected rows of EACH statement on
  215.                                           // multiple-statement queries. See the read_dump.php file for hardcoded
  216.                                           // defaults on how many queries a statement may contain!
  217. $cfg['AllowArbitraryServer']    = FALSE;  // allow login to any user entered server in cookie based auth
  218.  
  219. // Left frame setup
  220. $cfg['LeftFrameLight']        = TRUE;    // use a select-based menu and display only the
  221.                                          // current tables in the left frame.
  222. $cfg['LeftFrameTableSeparator']= '__';   // Which string will be used to generate table prefixes
  223.                                          // to split/nest tables into multiple categories
  224. $cfg['LeftFrameTableLevel']   = '1';     // How many sublevels should be displayed when splitting
  225.                                          // up tables by the above Separator
  226. $cfg['ShowTooltip']           = TRUE;    // display table comment as tooltip in left frame
  227. $cfg['ShowTooltipAliasDB']    = FALSE;   // if ShowToolTip is enabled, this defines that table/db comments
  228. $cfg['ShowTooltipAliasTB']    = FALSE;   // are shown (in the left menu and db_details_structure) instead of
  229.                                          // table/db names. Setting ShowTooltipAliasTB to 'nested' will only
  230.                                          // use the Aliases for nested descriptors, not the table itself.
  231.  
  232. $cfg['LeftDisplayLogo']       = TRUE;   // display logo at top of left frame
  233. $cfg['LeftDisplayServers']    = FALSE;  // display server choice at top of left frame
  234. $cfg['DisplayServersList']    = FALSE;  // server choice as links
  235.  
  236. // In the main frame, at startup...
  237. $cfg['ShowStats']             = TRUE;   // allow to display statistics and space usage in
  238.                                         // the pages about database details and table
  239.                                         // properties
  240. $cfg['ShowMysqlInfo']         = FALSE;  // whether to display the "MySQL runtime
  241. $cfg['ShowMysqlVars']         = FALSE;  // information", "MySQL system variables", "PHP
  242. $cfg['ShowPhpInfo']           = FALSE;  // information" and "change password" links for
  243. $cfg['ShowChgPassword']       = FALSE;  // simple users or not
  244. $cfg['SuggestDBName']         = TRUE;   // suggest a new DB name if possible (false = keep empty)
  245.  
  246. // In browse mode...
  247. $cfg['ShowBlob']              = FALSE;  // display blob field contents
  248. $cfg['NavigationBarIconic']   = TRUE;   // do not display text inside navigation bar buttons
  249. $cfg['ShowAll']               = FALSE;  // allows to display all the rows
  250. $cfg['MaxRows']               = 30;     // maximum number of rows to display
  251. $cfg['Order']                 = 'ASC';  // default for 'ORDER BY' clause (valid
  252.                                         // values are 'ASC', 'DESC' or 'SMART' -ie
  253.                                         // descending order for fields of type
  254.                                         // TIME, DATE, DATETIME & TIMESTAMP,
  255.                                         // ascending order else-)
  256.  
  257. // In edit mode...
  258. $cfg['ProtectBinary']         = 'blob'; // disallow editing of binary fields
  259.                                         // valid values are:
  260.                                         //   FALSE  allow editing
  261.                                         //   'blob' allow editing except for BLOB fields
  262.                                         //   'all'  disallow editing
  263. $cfg['ShowFunctionFields']    = TRUE;   // Display the function fields in edit/insert mode
  264. $cfg['CharEditing']           = 'input';
  265.                                         // Which editor should be used for CHAR/VARCHAR fields:
  266.                                         //  input - allows limiting of input length
  267.                                         //  textarea - allows newlines in fields
  268. $cfg['InsertRows']            = 2;      // How many rows can be inserted at one time
  269.  
  270. // For the export features...
  271. $cfg['ZipDump']               = TRUE;   // Allow the use of zip/gzip/bzip
  272. $cfg['GZipDump']              = TRUE;   // compression for
  273. $cfg['BZipDump']              = TRUE;   // dump files
  274. $cfg['CompressOnFly']         = TRUE;   // Will compress gzip/bzip2 exports on
  275.                                         // fly without need for much memory.
  276.                                         // If you encounter problems with
  277.                                         // created gzip/bzip2 files disable
  278.                                         // this feature.
  279.  
  280. // Tabs display settings
  281. $cfg['LightTabs']             = FALSE;  // use graphically less intense menu tabs
  282. $cfg['PropertiesIconic']      = TRUE;   // Use icons instead of text for the table display of a database (TRUE|FALSE|'both')
  283. $cfg['PropertiesNumColumns']  = 1;      // How many columns should be used for table display of a database?
  284.                                         // (a value larger than 1 results in some information being hidden)
  285.  
  286. $cfg['DefaultTabServer']      = 'main.php';
  287.                                    // Possible values:
  288.                                    // 'main.php' = the welcome page
  289.                                    // (recommended for multiuser setups)
  290.                                    // 'server_databases.php' = list of databases
  291.                                    // 'server_status.php' = runtime information
  292.                                    // 'server_variables.php' = MySQL server variables
  293.                                    // 'server_privileges.php' = user management
  294.                                    // 'server_processlist.php' = process list
  295. $cfg['DefaultTabDatabase']    = 'db_details_structure.php';
  296.                                    // Possible values:
  297.                                    // 'db_details_structure.php' = tables list
  298.                                    // 'db_details.php' = sql form
  299.                                    // 'db_search.php' = search query
  300.                                    // 'db_operations.php' = operations on database
  301. $cfg['DefaultTabTable']       = 'tbl_properties_structure.php';
  302.                                    // Possible values:
  303.                                    // 'tbl_properties_structure.php' = fields list
  304.                                    // 'tbl_properties.php' = sql form
  305.                                    // 'tbl_select.php = select page
  306.                                    // 'tbl_change.php = insert row page
  307.  
  308. /**
  309.  * Export defaults
  310.  */
  311.  
  312. $cfg['Export']['format']                    = 'sql';  // sql/latex/excel/csv/xml/xls/hmtlexcel/htmlword
  313. $cfg['Export']['compression']               = 'none'; // none/zip/gzip/bzip2
  314.  
  315. $cfg['Export']['asfile']                    = FALSE;
  316. $cfg['Export']['onserver']                  = FALSE;
  317. $cfg['Export']['onserver_overwrite']        = FALSE;
  318. $cfg['Export']['remember_file_template']    = TRUE;
  319.  
  320. $cfg['Export']['htmlexcel_columns']         = FALSE;
  321. $cfg['Export']['htmlexcel_null']            = 'NULL';
  322.  
  323. $cfg['Export']['htmlword_structure']        = TRUE;
  324. $cfg['Export']['htmlword_data']             = TRUE;
  325. $cfg['Export']['htmlword_columns']          = FALSE;
  326. $cfg['Export']['htmlword_null']             = 'NULL';
  327.  
  328. $cfg['Export']['xls_columns']               = FALSE;
  329. $cfg['Export']['xls_null']                  = 'NULL';
  330.  
  331. $cfg['Export']['csv_columns']               = FALSE;
  332. $cfg['Export']['csv_null']                  = 'NULL';
  333. $cfg['Export']['csv_separator']             = ';';
  334. $cfg['Export']['csv_enclosed']              = '"';
  335. $cfg['Export']['csv_escaped']               = '\\';
  336. $cfg['Export']['csv_terminated']            = 'AUTO';
  337. $cfg['Export']['excel_columns']             = FALSE;
  338. $cfg['Export']['excel_null']                = 'NULL';
  339. $cfg['Export']['excel_edition']             = 'win'; // win/mac
  340.  
  341. $cfg['Export']['latex_structure']           = TRUE;
  342. $cfg['Export']['latex_data']                = TRUE;
  343. $cfg['Export']['latex_columns']             = TRUE;
  344. $cfg['Export']['latex_relation']            = TRUE;
  345. $cfg['Export']['latex_comments']            = TRUE;
  346. $cfg['Export']['latex_mime']                = TRUE;
  347. $cfg['Export']['latex_null']                = '\textit{NULL}';
  348. $cfg['Export']['latex_caption']             = TRUE;
  349. $cfg['Export']['latex_data_label']          = 'tab:__TABLE__-data';
  350. $cfg['Export']['latex_structure_label']     = 'tab:__TABLE__-structure';
  351.  
  352. $cfg['Export']['sql_structure']             = TRUE;
  353. $cfg['Export']['sql_data']                  = TRUE;
  354. $cfg['Export']['sql_compat']                = 'NONE';
  355. $cfg['Export']['sql_disable_fk']            = FALSE;
  356. $cfg['Export']['sql_use_transaction']       = FALSE;
  357. $cfg['Export']['sql_drop_database']         = FALSE;
  358. $cfg['Export']['sql_drop_table']            = FALSE;
  359. $cfg['Export']['sql_if_not_exists']         = FALSE;
  360. $cfg['Export']['sql_auto_increment']        = TRUE;
  361. $cfg['Export']['sql_backquotes']            = TRUE;
  362. $cfg['Export']['sql_dates']                 = FALSE;
  363. $cfg['Export']['sql_relation']              = FALSE;
  364. $cfg['Export']['sql_columns']               = FALSE;
  365. $cfg['Export']['sql_delayed']               = FALSE;
  366. $cfg['Export']['sql_ignore']                = FALSE;
  367. $cfg['Export']['sql_hex_for_binary']        = TRUE;
  368. $cfg['Export']['sql_type']                  = 'insert'; // insert/update/replace
  369. $cfg['Export']['sql_extended']              = FALSE;
  370. $cfg['Export']['sql_comments']              = FALSE;
  371. $cfg['Export']['sql_mime']                  = FALSE;
  372. $cfg['Export']['sql_header_comment']        = ''; // \n is replaced by new line
  373.  
  374. /**
  375.  * Link to the official MySQL documentation.
  376.  * Be sure to include no trailing slash on the path.
  377.  * See http://dev.mysql.com/doc/ for more information
  378.  * about MySQL manuals and their types.
  379.  */
  380. $cfg['MySQLManualBase'] = 'http://dev.mysql.com/doc/mysql/en';
  381.  
  382. /**
  383.  * Type of MySQL documentation:
  384.  *   old        - old style used in phpMyAdmin 2.3.0 and sooner
  385.  *   searchable - "Searchable, with user comments"
  386.  *   chapters   - "HTML, one page per chapter"
  387.  *   big        - "HTML, all on one page"
  388.  *   none       - do not show documentation links
  389.  */
  390. $cfg['MySQLManualType'] = 'searchable';
  391.  
  392.  
  393. /**
  394.  * PDF options
  395.  */
  396. $cfg['PDFPageSizes']        = array('A3', 'A4', 'A5', 'letter', 'legal');
  397. $cfg['PDFDefaultPageSize']  = 'A4';
  398.  
  399.  
  400. /**
  401.  * Language and charset conversion settings
  402.  */
  403. // Default language to use, if not browser-defined or user-defined
  404. $cfg['DefaultLang'] = 'en-iso-8859-1';
  405.  
  406. // Force: always use this language - must be defined in
  407. //        libraries/select_lang.lib.php
  408. // $cfg['Lang']     = 'en-iso-8859-1';
  409.  
  410. // Default charset to use for recoding of MySQL queries, does not take
  411. // any effect when charsets recoding is switched off by
  412. // $cfg['AllowAnywhereRecoding'] or in language file
  413. // (see $cfg['AvailableCharsets'] to possible choices, you can add your own)
  414. $cfg['DefaultCharset'] = 'iso-8859-1';
  415.  
  416. // Allow charset recoding of MySQL queries, must be also enabled in language
  417. // file to make harder using other language files than unicode.
  418. // Default value is FALSE to avoid problems on servers without the iconv
  419. // extension and where dl() is not supported
  420. $cfg['AllowAnywhereRecoding'] = FALSE;
  421.  
  422. // You can select here which functions will be used for charset conversion.
  423. // Possible values are:
  424. //      auto   - automatically use available one (first is tested iconv, then
  425. //               recode)
  426. //      iconv  - use iconv or libiconv functions
  427. //      recode - use recode_string function
  428. $cfg['RecodingEngine'] = 'auto';
  429.  
  430. // Specify some parameters for iconv used in charset conversion. See iconv
  431. // documentation for details:
  432. // http://www.gnu.org/software/libiconv/documentation/libiconv/iconv_open.3.html
  433. $cfg['IconvExtraParams'] = '';
  434.  
  435. // Available charsets for MySQL conversion. currently contains all which could
  436. // be found in lang/* files and few more.
  437. // Charsets will be shown in same order as here listed, so if you frequently
  438. // use some of these move them to the top.
  439. $cfg['AvailableCharsets'] = array(
  440.     'iso-8859-1',
  441.     'iso-8859-2',
  442.     'iso-8859-3',
  443.     'iso-8859-4',
  444.     'iso-8859-5',
  445.     'iso-8859-6',
  446.     'iso-8859-7',
  447.     'iso-8859-8',
  448.     'iso-8859-9',
  449.     'iso-8859-10',
  450.     'iso-8859-11',
  451.     'iso-8859-12',
  452.     'iso-8859-13',
  453.     'iso-8859-14',
  454.     'iso-8859-15',
  455.     'windows-1250',
  456.     'windows-1251',
  457.     'windows-1252',
  458.     'windows-1256',
  459.     'windows-1257',
  460.     'koi8-r',
  461.     'big5',
  462.     'gb2312',
  463.     'utf-8',
  464.     'utf-7',
  465.     'x-user-defined',
  466.     'euc-jp',
  467.     'ks_c_5601-1987',
  468.     'tis-620',
  469.     'SHIFT_JIS'
  470. );
  471.  
  472. /**
  473.  * Customization & design
  474.  *
  475.  * The graphical settings are now located in themes/themename/layout.inc.php
  476.  */
  477.  
  478. $cfg['LeftPointerEnable']   = TRUE;         // enable the left panel pointer
  479.                                             // (used when LeftFrameLight is FALSE)
  480.                                             // see also LeftPointerColor
  481.                                             // in layout.inc.php
  482.  
  483. $cfg['BrowsePointerEnable'] = TRUE;        // enable the browse pointer
  484.                                             // see also BrowsePointerColor
  485.                                             // in layout.inc.php
  486.  
  487. $cfg['BrowseMarkerEnable'] = TRUE;         // enable the browse marker
  488.                                             // see also BrowseMarkerColor
  489.                                             // in layout.inc.php
  490.  
  491. $cfg['TextareaCols']        = 40;           // textarea size (columns) in edit mode
  492.                                             // (this value will be emphasized (*2) for sql
  493.                                             // query textareas and (*1.25) for query window)
  494. $cfg['TextareaRows']        = 7;            // textarea size (rows) in edit mode
  495. $cfg['LongtextDoubleTextarea'] = TRUE;      // double size of textarea size for longtext fields
  496. $cfg['TextareaAutoSelect']  = TRUE;         // autoselect when clicking in the textarea of the querybox
  497. $cfg['CharTextareaCols']    = 40;           // textarea size (columns) for CHAR/VARCHAR
  498. $cfg['CharTextareaRows']    = 2;            // textarea size (rows) for CHAR/VARCHAR
  499. $cfg['CtrlArrowsMoving']    = TRUE;         // Enable Ctrl+Arrows moving between fields when editing?
  500. $cfg['LimitChars']          = 50;           // Max field data length in browse mode for all non-numeric fields
  501. $cfg['ModifyDeleteAtLeft']  = TRUE;         // show edit/delete links on left side of browse
  502.                                             // (or at the top with vertical browse)
  503. $cfg['ModifyDeleteAtRight'] = FALSE;        // show edit/delete links on right side of browse
  504.                                             // (or at the bottom with vertical browse)
  505. $cfg['DefaultDisplay']      = 'horizontal'; // default display direction
  506.                                             // (horizontal|vertical|horizontalflipped)
  507. $cfg['DefaultPropDisplay']  = 'horizontal'; // default display direction for altering/
  508.                                             // creating columns (tbl_properties)
  509.                                             // (horizontal|vertical)
  510.  
  511. $cfg['HeaderFlipType']      = 'css';        // table-header rotation via faking or css? (css|fake)
  512.                                             // NOTE: CSS only works in IE browsers!
  513. $cfg['ShowBrowseComments']  = TRUE;         // shows stored relation-comments in 'browse' mode.
  514. $cfg['ShowPropertyComments']= TRUE;         // shows stored relation-comments in 'table property' mode.
  515. $cfg['RepeatCells']         = 100;          // repeat header names every X cells? (0 = deactivate)
  516.  
  517. $cfg['QueryFrame']          = TRUE;         // displays a link or icon in the left frame to open the querybox, and activates the querybox when clicking on [Edit] on the results page.
  518. $cfg['QueryFrameJS']        = TRUE;         // whether to use JavaScript functions for opening a new window for SQL commands.
  519.                                             // if set to 'false', the target of the querybox is always the right frame.
  520. $cfg['QueryWindowWidth']    = 550;          // Width of Query window
  521. $cfg['QueryWindowHeight']   = 310;          // Height of Query window
  522. $cfg['QueryHistoryDB']      = FALSE;         // Set to TRUE if you want DB-based query history.
  523.                                             // If FALSE, this utilizes JS-routines to display
  524.                                             // query history (lost by window close)
  525. $cfg['QueryWindowDefTab']   = 'sql';        // which tab to display in the querywindow on startup
  526.                                             // (sql|files|history|full)
  527. $cfg['QueryHistoryMax']     = 25;           // When using DB-based query history, how many entries
  528.                                             // should be kept?
  529. $cfg['BrowseMIME']          = TRUE;         // Use MIME-Types (stored in column comments table) for
  530. $cfg['MaxExactCount']       = 20000;        // When approximate count < this, PMA will get exact count for
  531.                                             // table rows.
  532. $cfg['WYSIWYG-PDF']         = TRUE;         // Utilize DHTML/JS capabilities to allow WYSIWYG editing of
  533.                                             // the PDF page editor. Requires an IE6/Mozilla based browser.
  534.  
  535. $cfg['NaturalOrder']        = TRUE;         // Sort table and database in natural order
  536.  
  537.  
  538. //-----------------------------------------------------------------------------
  539. // custom-setup by mkkeck: 2004-05-04
  540. //    some specials for new icons and scrollings
  541. // FIXME:
  542. // 2004-05-08 rabus: We need to rearrange these variables.
  543.  
  544. $cfg['ShowHttpHostTitle']   = TRUE;            // show HttpHost in browsers window title (true|false)?
  545. $cfg['SetHttpHostTitle']    = '';              // if ShowHttpHostTitle=true, please set your host (server)
  546.                                              // or an other string, wich should be shown in browsers window title.
  547.                                              // If not set (or empty), the PMA will get your real Host-Adress.
  548.  
  549. $cfg['ErrorIconic']          = TRUE;    // show some icons for warning, error and information messages (true|false)?
  550. $cfg['MainPageIconic']       = TRUE;    // show icons in list on main page, on right panel top menu (server db table)  and on menu tabs (true|false)?
  551. $cfg['ReplaceHelpImg']       = TRUE;    // show help button instead of strDocumentation (true|false)?
  552.  
  553. // theme manager
  554. $cfg['ThemePath']           = './themes';    // using themes manager please set up here the path to 'themes'
  555.                                              // else leave empty
  556. $cfg['ThemeManager']        = TRUE;          // if you want to use selectable themes and if ThemesPath not empty
  557.                                              // set it to true, else set it to false (default is false);
  558. $cfg['ThemeDefault']        = 'original';         // set up default theme, if ThemePath not empty
  559.                                              // you can set up here an valid path to themes or 'original' for
  560.                                              // the original pma-theme
  561.  
  562. //-----------------------------------------------------------------------------
  563.  
  564.  
  565. /**
  566.  * Default queries
  567.  * %d will be replaced by the database name.
  568.  * %t will be replaced by the table name.
  569.  * %f will be replaced by a list of field names.
  570.  * (%t and %f only applies to DefaultQueryTable)
  571.  */
  572. $cfg['DefaultQueryTable']    = 'SELECT * FROM %t WHERE 1';
  573. $cfg['DefaultQueryDatabase'] = '';
  574.  
  575. /**
  576.  * SQL Query box settings
  577.  * These are the links display in all of the SQL Query boxes
  578.  */
  579. $cfg['SQLQuery']['Edit']      = TRUE;       // Edit link to change a query
  580. $cfg['SQLQuery']['Explain']   = TRUE;       // EXPLAIN on SELECT queries
  581. $cfg['SQLQuery']['ShowAsPHP'] = TRUE;       // Wrap a query in PHP
  582. $cfg['SQLQuery']['Validate']  = FALSE;      // Validate a query (see $cfg['SQLValidator'] as well)
  583. $cfg['SQLQuery']['Refresh']   = TRUE;       // Refresh the results page
  584.  
  585.  
  586. /**
  587.  * Webserver upload/save/import directories
  588.  */
  589. $cfg['UploadDir']             = '';         // Directory for uploaded files that can be executed by
  590.                                             // phpMyAdmin. For example './upload'. Leave empty for
  591.                                             // no upload directory support
  592. $cfg['SaveDir']               = '';         // Directory where phpMyAdmin can save exported data on
  593.                                             // server. For example './save'. Leave empty for no save
  594.                                             // directory support.
  595. $cfg['docSQLDir']             = '';         // Directory for docSQL imports, phpMyAdmin can import
  596.                                             // docSQL files from that directory. For example
  597.                                             // './docSQL'. Leave empty for no docSQL import support.
  598. $cfg['TempDir']               = '';         // Directory where phpMyAdmin can save temporary files.
  599.                                             // This is needed for MS Excel export, see documentation
  600.                                             // how to enable that.
  601.  
  602.  
  603. /**
  604.  * Misc. settings
  605.  */
  606. $cfg['GD2Available']          = 'auto';     // Is GD >= 2 available? Set to yes/no/auto. 'auto'
  607.                                             // does autodetection, which is a bit expensive for
  608.                                             // php < 4.3.0, but it is the only safe vay how to
  609.                                             // determine GD version.
  610. /**
  611.  * SQL Parser Settings
  612.  */
  613. $cfg['SQP']['fmtType']      = 'html';       // Pretty-printing style to use on queries (html, text, none)
  614. $cfg['SQP']['fmtInd']       = '1';          // Amount to indent each level (floats ok)
  615. $cfg['SQP']['fmtIndUnit']   = 'em';         // Units for indenting each level (CSS Types - {em,px,pt})
  616. // The graphical settings are now located in themes/themename/layout.inc.php
  617.  
  618. /**
  619.  * If you wish to use the SQL Validator service, you should be
  620.  * aware of the following:
  621.  * All SQL statements are stored anonymously for statistical purposes.
  622.  * Mimer SQL Validator, Copyright 2002 Upright Database Technology.
  623.  * All rights reserved.
  624.  */
  625. $cfg['SQLValidator']['use']      = FALSE;   // Make the SQL Validator available
  626. $cfg['SQLValidator']['username'] = '';      // If you have a custom username, specify it here (defaults to anonymous)
  627. $cfg['SQLValidator']['password'] = '';      // Password for username
  628.  
  629. /**
  630.  * Developers ONLY!
  631.  * To use the following, please install the DBG extension from http://dd.cron.ru/dbg/
  632.  */
  633. $cfg['DBG']['enable'] = FALSE;              // Make the DBG stuff available
  634. $cfg['DBG']['profile']['enable'] = FALSE;   // Produce profiling results of PHP
  635. $cfg['DBG']['profile']['threshold'] = 0.5;  // Threshold of long running code to display
  636.                                             // Anything below the threshold is not displayed
  637.  
  638.  
  639. /**
  640.  * MySQL settings
  641.  */
  642. // Column types;
  643. // varchar, tinyint, text and date are listed first, based on estimated popularity
  644. $cfg['ColumnTypes'] = array(
  645.    'VARCHAR',
  646.    'TINYINT',
  647.    'TEXT',
  648.    'DATE',
  649.    'SMALLINT',
  650.    'MEDIUMINT',
  651.    'INT',
  652.    'BIGINT',
  653.    'FLOAT',
  654.    'DOUBLE',
  655.    'DECIMAL',
  656.    'DATETIME',
  657.    'TIMESTAMP',
  658.    'TIME',
  659.    'YEAR',
  660.    'CHAR',
  661.    'TINYBLOB',
  662.    'TINYTEXT',
  663.    'BLOB',
  664.    'MEDIUMBLOB',
  665.    'MEDIUMTEXT',
  666.    'LONGBLOB',
  667.    'LONGTEXT',
  668.    'ENUM',
  669.    'SET'
  670. );
  671.  
  672. // Attributes
  673. // Note: the "ON UPDATE CURRENT_TIMESTAMP" attribute is added dynamically 
  674. // for MySQL >= 4.1.2, in tbl_properties.inc.php
  675.  
  676. $cfg['AttributeTypes'] = array(
  677.    '',
  678.    'BINARY',
  679.    'UNSIGNED',
  680.    'UNSIGNED ZEROFILL'
  681. );
  682.  
  683. // Available functions
  684. if ($cfg['ShowFunctionFields']) {
  685.     $cfg['Functions'] = array(
  686.        'ASCII',
  687.        'CHAR',
  688.        'SOUNDEX',
  689.        'LCASE',
  690.        'UCASE',
  691.        'NOW',
  692.        'PASSWORD',
  693.        'MD5',
  694.        'SHA1',
  695.        'ENCRYPT',
  696.        'RAND',
  697.        'LAST_INSERT_ID',
  698.        'COUNT',
  699.        'AVG',
  700.        'SUM',
  701.        'CURDATE',
  702.        'CURTIME',
  703.        'FROM_DAYS',
  704.        'FROM_UNIXTIME',
  705.        'PERIOD_ADD',
  706.        'PERIOD_DIFF',
  707.        'TO_DAYS',
  708.        'UNIX_TIMESTAMP',
  709.        'USER',
  710.        'WEEKDAY',
  711.        'CONCAT'
  712.     );
  713.  
  714.     // Which column types will be mapped to which Group?
  715.     $cfg['RestrictColumnTypes'] = array(
  716.        'VARCHAR'      => 'FUNC_CHAR',
  717.        'TINYINT'      => 'FUNC_NUMBER',
  718.        'TEXT'         => 'FUNC_CHAR',
  719.        'DATE'         => 'FUNC_DATE',
  720.        'SMALLINT'     => 'FUNC_NUMBER',
  721.        'MEDIUMINT'    => 'FUNC_NUMBER',
  722.        'INT'          => 'FUNC_NUMBER',
  723.        'BIGINT'       => 'FUNC_NUMBER',
  724.        'FLOAT'        => 'FUNC_NUMBER',
  725.        'DOUBLE'       => 'FUNC_NUMBER',
  726.        'DECIMAL'      => 'FUNC_NUMBER',
  727.        'DATETIME'     => 'FUNC_DATE',
  728.        'TIMESTAMP'    => 'FUNC_DATE',
  729.        'TIME'         => 'FUNC_DATE',
  730.        'YEAR'         => 'FUNC_DATE',
  731.        'CHAR'         => 'FUNC_CHAR',
  732.        'TINYBLOB'     => 'FUNC_CHAR',
  733.        'TINYTEXT'     => 'FUNC_CHAR',
  734.        'BLOB'         => 'FUNC_CHAR',
  735.        'MEDIUMBLOB'   => 'FUNC_CHAR',
  736.        'MEDIUMTEXT'   => 'FUNC_CHAR',
  737.        'LONGBLOB'     => 'FUNC_CHAR',
  738.        'LONGTEXT'     => 'FUNC_CHAR',
  739.        'ENUM'         => '',
  740.        'SET'          => ''
  741.     );
  742.  
  743.     // Map above defined groups to any function
  744.     $cfg['RestrictFunctions'] = array(
  745.         'FUNC_CHAR'   => array(
  746.             'ASCII',
  747.             'CHAR',
  748.             'SOUNDEX',
  749.             'LCASE',
  750.             'UCASE',
  751.             'PASSWORD',
  752.             'MD5',
  753.             'SHA1',
  754.             'ENCRYPT',
  755.             'LAST_INSERT_ID',
  756.             'USER',
  757.             'CONCAT'
  758.         ),
  759.  
  760.         'FUNC_DATE'   => array(
  761.             'NOW',
  762.             'CURDATE',
  763.             'CURTIME',
  764.             'FROM_DAYS',
  765.             'FROM_UNIXTIME',
  766.             'PERIOD_ADD',
  767.             'PERIOD_DIFF',
  768.             'TO_DAYS',
  769.             'UNIX_TIMESTAMP',
  770.             'WEEKDAY'
  771.         ),
  772.  
  773.         'FUNC_NUMBER' => array(
  774.             'ASCII',
  775.             'CHAR',
  776.             'MD5',
  777.             'SHA1',
  778.             'ENCRYPT',
  779.             'RAND',
  780.             'LAST_INSERT_ID',
  781.             'UNIX_TIMESTAMP',
  782.             'COUNT',
  783.             'AVG',
  784.             'SUM'
  785.         )
  786.     );
  787.  
  788.     // Default functions for above defined groups
  789.     $cfg['DefaultFunctions'] = array(
  790.         'FUNC_CHAR'         => '',
  791.         'FUNC_DATE'         => '',
  792.         'FUNC_NUMBER'       => '',
  793.         'first_timestamp'   => 'NOW'
  794.     );
  795.  
  796.  
  797. } // end if
  798.  
  799. // Search operators
  800. $cfg['NumOperators'] = array(
  801.    '=',
  802.    '>',
  803.    '>=',
  804.    '<',
  805.    '<=',
  806.    '!=',
  807.    'LIKE',
  808.    'NOT LIKE'
  809. );
  810.  
  811. $cfg['TextOperators'] = array(
  812.    'LIKE',
  813.    'LIKE %...%',
  814.    'NOT LIKE',
  815.    '=',
  816.    '!=',
  817.    'REGEXP',
  818.    'NOT REGEXP'
  819. );
  820.  
  821. $cfg['EnumOperators'] = array(
  822.    '=',
  823.    '!='
  824. );
  825.  
  826. $cfg['NullOperators'] = array(
  827.    'IS NULL',
  828.    'IS NOT NULL'
  829. );
  830.  
  831. $cfg['UnaryOperators'] = array(
  832.    'IS NULL'     => 1,
  833.    'IS NOT NULL' => 1
  834. );
  835.  
  836. /**
  837.  * Unset magic_quotes_runtime - do not change!
  838.  */
  839. set_magic_quotes_runtime(0);
  840.  
  841. /**
  842.  * File Revision - do not change either!
  843.  */
  844. $cfg['FileRevision'] = '$Revision: 2.52 $';
  845. ?>
  846.